package com.sefon.smarteconomy.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
 
/**
 * 
 * Copyright: Copyright (c) 2018 SefonSoft 
 * 
 * @ClassName: User.java 
 * @Description:用户类
 * 
 * @version: v1.0.0
 * @author: SF2170
 * @by AnalysisExcel2File.java
 * @Date 2018/03/26 22:07:28
 * 
 */
@Entity
@Table(name="user")
public class User {

	/**
	* UUID
	*/
	@Id 
	@Column(name="`id`", nullable=false, length=64, columnDefinition="varchar(64) COMMENT '采用uuid，方便管理'")
	private String id;

	@Column(name="`login_name`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '登录名'")
	private String loginName;

	/**
	* 加密显示
	*/
	@Column(name="`user_pwd`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '用户密码（加密显示）'")
	private String userPwd;

	/**
	* 用于显示
	*/
	@Column(name="`user_name`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '用户名'")
	private String userName;

	@Column(name="`create_date`", columnDefinition="datetime COMMENT '创建时间'")
	private Date createDate;

	@Column(name="`updata_date`", columnDefinition="timestamp COMMENT '修改时间'")
	private Date updataDate;

	/**
	* 0和1(1:true ,0:false)
	*/
	@Column(name="`admin_flag`", length=2, columnDefinition="int(2) COMMENT '是否管理员（一般会有）'")
	private Integer adminFlag;

	/**
	* 0和1(1:true ,0:false)
	*/
	@Column(name="`del_flag`", length=2, columnDefinition="int(2) COMMENT '删除标记（做逻辑删除）'")
	private Integer delFlag;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdataDate() {
		return updataDate;
	}

	public void setUpdataDate(Date updataDate) {
		this.updataDate = updataDate;
	}

	public Integer getAdminFlag() {
		return adminFlag;
	}

	public void setAdminFlag(Integer adminFlag) {
		this.adminFlag = adminFlag;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

}
